ion-header {
  z-index: 16;
}

ion-segment {
  --color-checked: black;
  height: 2.75rem;
  // border-bottom: 0.03rem #ebebed solid;
  position: relative;
  flex: 8;
  justify-content: flex-start !important; // 兼容低版本安卓手机
}

#sg-bg {
  height: 2.75rem;
  width: 100%;
  display: none;
  transform: all 0.5s;
}

#topSegment {
  transform: all 0.5s;
  display: flex;
}

ion-segment-button {
  // min-width: 3.5rem; //Or whatever width you want tab to be - for four visible tabs: min-width: 25vw;
  background-color: rgba(255, 255, 255, 1);
  text-transform: none;
  color: rgba(133, 136, 148, 1);
  font-size: 1rem;
}

.ios ion-segment-button {
  border: 0;
}

// .ios ion-segment-button.segment-button-checked {
//  width: 1.63rem;
//  border-bottom: 0.19rem solid rgba(255, 99, 20, 1);
// }

.bar {
  width: 1.63rem;
  height: 0.19rem;
  background: linear-gradient(90deg, rgba(255, 149, 0, 1) 0%, rgba(255, 99, 20, 1) 100%);
  border-radius: 0.09rem;
  position: absolute;
  bottom: 0;
}
ion-segment-button span {
  display: block;
  margin-bottom: 0.3125rem;
  margin-left: 0.625rem;
  margin-right: 0.625rem;
}

ion-segment-button:first-child span {
  margin-left: 1.25rem;
}

ion-thumbnail {
  background-color: blanchedalmond;
}

ion-thumbnail {
  border-radius: 7px;
  padding: 2px;
}

.segment-img-link {
  height: 1rem;
  width: 1rem;
  margin-right: 1.25rem;
  margin-top: 0.775rem;
  margin-bottom: 0.9rem;
  margin-left: 0.875rem;
}

.alignRightToLeft {
  flex: 3;
}
.alignLeftToRight{
  --margin-start: -2rem;
  flex: 3;
}
// @supports (top: env(safe-area-inset-top)) {
//   #topSegment {
//     height: env(safe-area-inset-top);
//   }
// }
// @supports (top: constant(safe-area-inset-top)) {
//   #topSegment {
//     height: constant(safe-area-inset-top);
//   }
// }
.badge-layer {
  display: flex;
}
.badge-p-font:first-child {
  margin-left: 1.25rem;
}
.badge-p-font {
  display: block;
  margin-bottom: 0.3125rem;
}
.badge-count {
  height: 1rem;
  border: 0.09rem solid #fff;
  border-radius: 0.5rem;
  background: #ff6314;
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 500;
  line-height: 0.75;
  padding: 2px 4px;
  z-index: 1000;
  margin-top: -0.07rem;
  margin-left: -0.2rem;
}